package com.ruoyi.app.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.personnel.service.PersonnelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/personnel")
public class AppPersonnelController extends BaseController {

    @Autowired
    private PersonnelService personnelService;

    @GetMapping("/getPersonnelByNo")
    public AjaxResult getPersonnelByNo(String no){
        return success(personnelService.getPersonnelByNo(no));
    }
}
